<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>补间动画——transition</title>
    <style type="text/css">
        html {
            background: #f5f5f5;
        }

        .box {
            width: 600px;
            height: 200px;
            border: 1px solid #ccc;
            background: #fff;
            margin: 20px auto;
        }

        .circle {
            width: 50px;
            height: 50px;
            background: blue;
            border-radius: 50%;
            margin: 75px 0;
            transition: all 2s;
        }

        .box:hover .circle {
            background: red;
            transform: translate(550px, 0);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="circle"></div>
    </div>
</body>
</html>